<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
	<title>User Login</title>
</head>

<body>

<form id="signIn" method="POST" action="<c:url value="/j_spring_security_check" />">
  <c:if test="${not empty param.error}">
    <font color="red">
      Login error. <br />
      Reason : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
    </font>
  </c:if>
  <fieldset>
    <label for="login">Username</label>
    <input id="login"  type="text" name="j_username"/>
    <br/>
    <label for="password">Password</label>
    <input id="password" type="password" name="j_password"/>
    <br/>
    <label for="rememberme">Remember me</label>
    <input id="rememberme" type="checkbox" name="_spring_security_remember_me" />
    <br/>
  </fieldset>
  <p><button type="submit">Sign In</button></p>
</form>

</body>
</html>
